package com.qth.valet.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("orders")
public class Orders {
    @TableId
    private String id;
    private Integer businessType;
    private Double currentLo;
    private Double currentLa;
    private String currentAddr;
    private Double targetLo;
    private Double targetLa;
    private String targetAddr;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date hopeTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date receiveTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date reachTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date finishTime;
    private Long price;
    private Integer userId;
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String avatar;
    private String userPhone;
    private Integer status;
    private String remark;
    private Integer driverId;
    private Integer payVersion;
    private Integer payType;
    private Integer insurance;

    // 录音(用','隔开)
    private String records;

    @TableField(exist = false)
    private Integer driverAge;
    @TableField(exist = false)
    private String profileImg;
    @TableField(exist = false)
    private String surname;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String driverPhone;
    @TableField(exist = false)
    private String driverStatus;
}
